package com.yixing.tech.system.po;

import com.yixing.tech.common.base.BasePO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.mongodb.core.index.Indexed;

import java.util.List;

/**
 * @author yixing tech
 * at 2022/8/14
 * describe：
 */
@Data
@Accessors(chain=true)
@NoArgsConstructor
@AllArgsConstructor
public class Department extends BasePO {
    @Indexed
    String name;
    String code;
    @Indexed
    String parentId;
    User supervisor;
    User leader;
    List<Department> children;
}
